<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../include/Siri/templates/templateAuthenticated.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

   <ui:define name="body-content">                                        
     <!-- Inicio del contenido de la pagina -->         

     <body>
          
         <h:form class="icePnlGrd" >
             <thead>OFICINAS</thead>
             <h:panelGrid  columns="4">

                    <h:outputLabel for="oficinaSalida" value="Oficina Salida" />
                    <p:selectOneMenu value="#{reservaBean.oficinaSelected}">
                                            <f:selectItems value="#{reservaBean.oficinaSelectItem}"  ></f:selectItems>
                                        </p:selectOneMenu>
                    <h:outputLabel for="hsalida" value="Fecha y hora Salida" />
                        <p:calendar pattern="dd-mm-yyyy hh:mm:ss" value="#{reservaBean.dayStart}"></p:calendar>
                        <h:outputLabel for="oficinaLlegada" value="Oficina Llegada" />
                    <p:selectOneMenu value="#{reservaBean.oficinaSelectedRe}" >
                                            <f:selectItems value="#{reservaBean.oficinaSelectItemRe}"  ></f:selectItems>
                                               </p:selectOneMenu> 
                <h:outputLabel for="hllegada" value="Fecha y hora Llegada" />
                <p:calendar pattern="dd-mm-yyyy hh:mm:ss" value="#{reservaBean.dayEnd}"></p:calendar>

          </h:panelGrid>
      </h:form> 
         <p:accordionPanel activeIndex="false">
       <p:tab title="Linea Aerea">  
            <h:form > 
                <p:panelGrid  columns="6">
               <h:outputLabel for="linea" value="Linea Aerea" />
                     <p:selectOneMenu value="#{reservaBean.lineaAereaSelected}">
                                    <f:selectItems value="#{reservaBean.lineaAeresSelectItem}" ></f:selectItems>
                                <!--<f:selectItem itemLabel="Seleccionar" itemValue="1"></f:selectItem>
                                <f:selectItem itemLabel="Avianca" itemValue="2" ></f:selectItem>-->
                            </p:selectOneMenu>
                 <h:outputLabel for="flightnumber" value="No de vuelo" />
                 <p:inputText placeholder="Numero de vuelo" id="flightnumber" size="20" ></p:inputText>
                    
                 <h:outputLabel for="frequentlytraveler" value="No de viajero frecuente" />
                   <p:inputText placeholder="Numero viajero frecuente" id="frequentlytraveler" size="20" ></p:inputText>
                    </p:panelGrid>
   </h:form>
        </p:tab>
       <p:tab title="Descuentos">
        <p:panelGrid columns="6" >
                <h:outputLabel for="enterprisediscount" value="No descuento empresarial" />
                    <p:inputText placeholder="Numero descuento empresarial" id="enterprisediscount" size="20" ></p:inputText>
                <h:outputLabel for="discountnumber" value="No cupon descuento" />
                <p:inputText placeholder="Numero cupon descuento" id="discountnumber" size="20" ></p:inputText>
                    
                <h:outputLabel for="frequentlyclient" value="No cliente frecuente" />
                    <p:inputText placeholder="Numero cliente frecuente" id="frequentlyclient" size="20" ></p:inputText>
                
        </p:panelGrid>
           </p:tab>
</p:accordionPanel>
    
         <div align="right" >
             <h:panelGrid columns="3" class="icePnlGrd" >
                    <h:outputLabel for="consulcliente" value="Consultar Cliente" />
                     <p:inputText id="consulcliente" size="20" value="#{reservaBean.name}"  ></p:inputText>
                     <p:commandButton type="consult" value="Consultar" styleClass="iceCmdBtnGran"/>
                </h:panelGrid>          
            </div>
         
         <div align="center">
             <h:form class="icePnlGrd" >
                    <thead>DATOS CLIENTE</thead>

                     <br></br> 
                    <br></br> 
                    <h:panelGrid columns="4" >
                        <h:outputLabel for="clientname" value="Nombre Cliente" />
             <p:inputText placeholder="Nombre de cliente" id="clientname" size="20" value="#{reservaBean.name}"  ></p:inputText>
 
            <h:outputLabel for="clientlastname" value="Apellido Cliente" />
            <p:inputText placeholder="Apellido de cliente" id="clientlastname" size="20" value="#{reservaBean.lastName}" ></p:inputText>
            
            <h:outputLabel for="fechaNaci" value="Fecha Nacimiento" />  
           
            <p:calendar id="DateofBirth" value="#{reservaBean.borndDay}" 
                           navigator="true"  pattern="dd/MM/yyyy"/>
            <h:outputLabel for="clientage" value="Edad" />  
            <p:inputText id="clientage" size="2" value="#{reservaBean.age}" ></p:inputText> 
            
            </h:panelGrid>
            </h:form>
       
            <br></br> 
            <h:form class="icePnlGrd" >
            <thead>DIRECCION 1</thead>
                    <br></br> 
                    <br></br> 
                    
                    <h:panelGrid columns="2">        
            <h:outputLabel for="adresone" value="Direccion" />
            <p:inputText placeholder="calle 8B # 78-21" id="adresone" size="20" ></p:inputText>
            </h:panelGrid>
            </h:form>        
             <h:form class="icePnlGrd" >
                  
            <thead>DIRECCION 2</thead>
            <h:panelGrid columns="4" >
            <h:outputLabel for="col" value="Colonia" />
                 <p:selectOneMenu >
                                            <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="AARON SAENZ" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="ACACIAS" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="ACUILOTLA" itemValue="4"></f:selectItem>
                                            <f:selectItem itemLabel="MADERO" itemValue="5"></f:selectItem>
                                            <f:selectItem itemLabel="MANZANASTITLA" itemValue="6"></f:selectItem>
                                        </p:selectOneMenu>

            <h:outputLabel for="del" value="Delegacion" />
                 <p:selectOneMenu >
                                            <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="CUAJIMALPA" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="CHIMALHUACAN" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="ALVARO OBREGON" itemValue="4"></f:selectItem>
                                            <f:selectItem itemLabel="LA PAZ" itemValue="5"></f:selectItem>
                                            <f:selectItem itemLabel="ATENCO" itemValue="6"></f:selectItem>
                                        </p:selectOneMenu>
            </h:panelGrid>
            </h:form> 
            <br></br>
       
            <h:form class="icePnlGrd" >
            <thead>DIRECCION 3</thead>
            <br></br>
            <br></br> 
            <h:panelGrid columns="8" >
            <td><h:outputLabel for="country" value="Pais" /></td>
                 <td><p:selectOneMenu >
                                            <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="MEXICO" itemValue="2"></f:selectItem>

                                        </p:selectOneMenu></td>
            <td><h:outputLabel for="estpro" value="Estado/Provincia" /></td>
                 <td><p:selectOneMenu >
                                            <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="Aguascalientes‎" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="Baja California‎" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="Durango‎" itemValue="4"></f:selectItem>
                                            <f:selectItem itemLabel="Yucatán‎" itemValue="5"></f:selectItem>
                                            <f:selectItem itemLabel="Nayarit‎" itemValue="6"></f:selectItem>
                                        </p:selectOneMenu></td> 
            
            <td><h:outputLabel for="postal" value="Cod Postal" /></td>
                 <td><p:selectOneMenu >
                         <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="4878" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="48780" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="48785" itemValue="4"></f:selectItem>
                                            <f:selectItem itemLabel="48786" itemValue="5"></f:selectItem>
                                            <f:selectItem itemLabel="48788" itemValue="6"></f:selectItem>
                                        </p:selectOneMenu></td> 
            
            <td><h:outputLabel for="city" value="Ciudad" /></td>
                 <td><p:selectOneMenu >
                         <f:selectItem itemLabel="-Seleccionar-" itemValue="1"></f:selectItem>
                                            <f:selectItem itemLabel="Acapulco" itemValue="2"></f:selectItem>
                                            <f:selectItem itemLabel="Aguascalientes" itemValue="3"></f:selectItem>
                                            <f:selectItem itemLabel="Cancún" itemValue="4"></f:selectItem>
                                            <f:selectItem itemLabel="Colima" itemValue="5"></f:selectItem>
                                            <f:selectItem itemLabel="Los Cabos" itemValue="6"></f:selectItem>
                                        </p:selectOneMenu></td> 
                </h:panelGrid> 
                </h:form>
                 <br></br> 
                 <br></br>
                 <h:form class="icePnlGrd" >
                <h:panelGrid columns="4" >
                    
                            <label for="phoneNumber">Telefono: 1</label>
                            <p:inputText placeholder="phoneNumber1"  size="10" ></p:inputText>
                            <label for="phoneNumber">Telefono: 2</label>
                            <p:inputText placeholder="phoneNumber2"  size="10" ></p:inputText>
         
                            <label for="Email">CorreoElectrónico:</label>
                            <p:inputText placeholder="CorreoElectrónico@"  size="20" ></p:inputText>
        
                            <label for="driverlicense">Licencia de Conducción:</label>
                            <p:inputText  id="Dirección" size="10" ></p:inputText>

                            <label for="Companyname">Nombre Empresa:</label>
                            <p:inputText placeholder="Nombre Empresa"  size="20" ></p:inputText>

            </h:panelGrid> 
                </h:form>

         </div>
     </body>    
       
    <!-- Fin del contenido de la pagina -->     
  </ui:define>     
</ui:composition>
